What does int argc, char *argv[] mean?
Posted
by Greg Treleaven
on Stack Overflow
See other posts from Stack Overflow
or by Greg Treleaven
Published on 2010-06-11T15:45:43Z
Indexed on
2010/06/11
15:53 UTC
Read the original article
Hit count: 304
In many C++ IDE's and compilers, when it generates the main function for you, it looks like this:
int main(int argc, char *argv[])
When I code C++ without an IDE, just with a command line compiler, I type:
int main()
without any parameters. What does this mean, and is it vital to my program?
© Stack Overflow or respective owner